package com.project.logistics.service.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.logistics.bean.Notice;
import com.project.logistics.mapper.NoticeMapper;
import com.project.logistics.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by94988 on 2021/3/21 15:22
 */
@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService  {
    @Autowired
    NoticeMapper noticeMapper;

    @Override
    public int deleteNotice(int noticeId) {
        return noticeMapper.deleteNotice(noticeId);
    }

    @Override
    public Notice findNoticeById(int noticeId) {
        return noticeMapper.findNoticeById(noticeId);
    }

    @Override
    public int updateRepairman(Notice notice) {
        return noticeMapper.updateRepairman(notice);
    }

    @Override
    public List<Notice> getAllNotice() {
        return noticeMapper.getAllNotice();
    }
}
